﻿using System;
using System.Data;
using System.Configuration;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.Web.UI.MobileControls;
using System.Collections.Generic;

namespace Ccit.OA.MsSystemDoc
{
    /// <summary>
    /// DOC_B4(文档编码规则)
    /// </summary>
    public class MsCodeRule
    {
        #region 私有属性
            private string _codeid;         //规则ID
            private string _codename;       //规则名称
            private string _primary;        //所属上级ID
            private string _codedefault;    //默认
            private List<MsCodeRuleDetail> _lstDetail;   //明细表集合
        #endregion
        #region 公有属性
            public string CodeId
            {
                set { _codeid = value; }
                get { return ((!string.IsNullOrEmpty(_codeid)) ? _codeid : ""); }
            }
            public string CodeName
            {
                set { _codename = value; }
                get { return ((!string.IsNullOrEmpty(_codename)) ? _codename : ""); }
            }
            public string Primary
            {
                set { _primary = value; }
                get { return ((!string.IsNullOrEmpty(_primary)) ? _primary : ""); }
            }
            public string CodeDefault
            {
                set { _codedefault = value; }
                get { return ((!string.IsNullOrEmpty(_codedefault)) ? _codedefault : ""); }
            }
            public List<MsCodeRuleDetail> LstDetail
            {
                set { _lstDetail = value; }
                get { return _lstDetail; }
            }
        #endregion
        #region method
            public MsCodeRule()
            { }
            public MsCodeRule(string sCodeId,string sCodeName,string Primary,string sCodeDefualt,List<MsCodeRuleDetail> lstDetail)
            {
                _codeid = sCodeId;
                _codename = sCodeName;
                _primary = Primary;
                _codedefault = sCodeDefualt;
                _lstDetail = lstDetail;
            }
        #endregion
    }
}
